<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__ms__ctl__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__ms__ctl.html">MS CTL       (Master Security Controller)</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gab77f1aa8ad20a2255e54a85bd08957c1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ms__ctl__functions.html#gab77f1aa8ad20a2255e54a85bd08957c1">Cy_Ms_Ctl_ConfigBusMaster</a> (<a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a> busMaster, bool privileged, bool nonSecure, uint32_t pcMask)</td></tr>
<tr class="memdesc:gab77f1aa8ad20a2255e54a85bd08957c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the referenced bus master by setting the privilege , non-secure and PC mask settings.  <a href="#gab77f1aa8ad20a2255e54a85bd08957c1">More...</a><br /></td></tr>
<tr class="separator:gab77f1aa8ad20a2255e54a85bd08957c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9336ba60a50f05f03b42216854c39004"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ms__ctl__functions.html#ga9336ba60a50f05f03b42216854c39004">Cy_Ms_Ctl_ConfigMscAcgResp</a> (<a class="el" href="group__group__ms__ctl__enums.html#ga8f077c1a170b8f608b695f41af1165b2">en_ms_ctl_master_sc_acg_t</a> busMaster, <a class="el" href="group__group__ms__ctl__enums.html#gaab2499fc22e5ca081a46b3cf762e622b">cy_en_ms_ctl_cfg_gate_resp_t</a> gateResp, <a class="el" href="group__group__ms__ctl__enums.html#gaf59de72cc897fff0fd1195cc583fa55b">cy_en_ms_ctl_sec_resp_t</a> secResp)</td></tr>
<tr class="memdesc:ga9336ba60a50f05f03b42216854c39004"><td class="mdescLeft">&#160;</td><td class="mdescRight">Response configuration for ACG and MSC for the referenced bus master.  <a href="#ga9336ba60a50f05f03b42216854c39004">More...</a><br /></td></tr>
<tr class="separator:ga9336ba60a50f05f03b42216854c39004"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaef6498638648a87f3ebb97cc8b35396d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ms__ctl__functions.html#gaef6498638648a87f3ebb97cc8b35396d">Cy_Ms_Ctl_SetActivePC</a> (<a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a> busMaster, uint32_t pc)</td></tr>
<tr class="memdesc:gaef6498638648a87f3ebb97cc8b35396d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set active protection context (PC)for the referenced bus master.  <a href="#gaef6498638648a87f3ebb97cc8b35396d">More...</a><br /></td></tr>
<tr class="separator:gaef6498638648a87f3ebb97cc8b35396d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae7608123f85ff134b3160076f8b02b89"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ms__ctl__functions.html#gae7608123f85ff134b3160076f8b02b89">Cy_Ms_Ctl_GetActivePC</a> (<a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a> busMaster)</td></tr>
<tr class="memdesc:gae7608123f85ff134b3160076f8b02b89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the active protection context (PC) for the referenced bus master.  <a href="#gae7608123f85ff134b3160076f8b02b89">More...</a><br /></td></tr>
<tr class="separator:gae7608123f85ff134b3160076f8b02b89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga95e11dab5d1cca926b0d8a65fea72ce3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ms__ctl__functions.html#ga95e11dab5d1cca926b0d8a65fea72ce3">Cy_Ms_Ctl_SetSavedPC</a> (<a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a> busMaster, uint32_t savedPc)</td></tr>
<tr class="memdesc:ga95e11dab5d1cca926b0d8a65fea72ce3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set saved protection context (PC) for the referenced bus master.  <a href="#ga95e11dab5d1cca926b0d8a65fea72ce3">More...</a><br /></td></tr>
<tr class="separator:ga95e11dab5d1cca926b0d8a65fea72ce3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa9f62fc8c713a4495b4335ceab4cc5b9"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ms__ctl__functions.html#gaa9f62fc8c713a4495b4335ceab4cc5b9">Cy_Ms_Ctl_GetSavedPC</a> (<a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a> busMaster)</td></tr>
<tr class="memdesc:gaa9f62fc8c713a4495b4335ceab4cc5b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the saved protection context (PC) for the referenced bus master.  <a href="#gaa9f62fc8c713a4495b4335ceab4cc5b9">More...</a><br /></td></tr>
<tr class="separator:gaa9f62fc8c713a4495b4335ceab4cc5b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae5950bbc842cdd6e0d00434fd5177bfd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ms__ctl__functions.html#gae5950bbc842cdd6e0d00434fd5177bfd">Cy_Ms_Ctl_SetPcHandler</a> (uint32_t pc, <a class="el" href="group__group__syslib__macros.html#ga71c09beda7671d1f69c8f06a546e2ae6">cy_israddress</a> handler)</td></tr>
<tr class="memdesc:gae5950bbc842cdd6e0d00434fd5177bfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the handler address for the given PC.  <a href="#gae5950bbc842cdd6e0d00434fd5177bfd">More...</a><br /></td></tr>
<tr class="separator:gae5950bbc842cdd6e0d00434fd5177bfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacc9bc3592b28afb68e09b4703cf1f286"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__syslib__macros.html#ga71c09beda7671d1f69c8f06a546e2ae6">cy_israddress</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__ms__ctl__functions.html#gacc9bc3592b28afb68e09b4703cf1f286">Cy_Ms_Ctl_GetPcHandler</a> (uint32_t pc)</td></tr>
<tr class="memdesc:gacc9bc3592b28afb68e09b4703cf1f286"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the handler address for the given PC.  <a href="#gacc9bc3592b28afb68e09b4703cf1f286">More...</a><br /></td></tr>
<tr class="separator:gacc9bc3592b28afb68e09b4703cf1f286"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gab77f1aa8ad20a2255e54a85bd08957c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab77f1aa8ad20a2255e54a85bd08957c1">&#9670;&nbsp;</a></span>Cy_Ms_Ctl_ConfigBusMaster()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a> Cy_Ms_Ctl_ConfigBusMaster </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a>&#160;</td>
          <td class="paramname"><em>busMaster</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>privileged</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>nonSecure</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pcMask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the referenced bus master by setting the privilege , non-secure and PC mask settings. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">busMaster</td><td>Bus master being initialized</td></tr>
    <tr><td class="paramname">privileged</td><td>privileged setting</td></tr>
    <tr><td class="paramname">pcMask</td><td>pcMask</td></tr>
    <tr><td class="paramname">nonSecure</td><td>Bus master security setting</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Initialization status </dd></dl>

</div>
</div>
<a id="ga9336ba60a50f05f03b42216854c39004"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9336ba60a50f05f03b42216854c39004">&#9670;&nbsp;</a></span>Cy_Ms_Ctl_ConfigMscAcgResp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a> Cy_Ms_Ctl_ConfigMscAcgResp </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__ms__ctl__enums.html#ga8f077c1a170b8f608b695f41af1165b2">en_ms_ctl_master_sc_acg_t</a>&#160;</td>
          <td class="paramname"><em>busMaster</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__ms__ctl__enums.html#gaab2499fc22e5ca081a46b3cf762e622b">cy_en_ms_ctl_cfg_gate_resp_t</a>&#160;</td>
          <td class="paramname"><em>gateResp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__ms__ctl__enums.html#gaf59de72cc897fff0fd1195cc583fa55b">cy_en_ms_ctl_sec_resp_t</a>&#160;</td>
          <td class="paramname"><em>secResp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Response configuration for ACG and MSC for the referenced bus master. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">busMaster</td><td>Bus master for which response is being initialized</td></tr>
    <tr><td class="paramname">gateResp</td><td>Response type when the ACG is blocking the incoming transfers:</td></tr>
    <tr><td class="paramname">secResp</td><td>Bust master privileged setting</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Initialization status </dd></dl>

</div>
</div>
<a id="gaef6498638648a87f3ebb97cc8b35396d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaef6498638648a87f3ebb97cc8b35396d">&#9670;&nbsp;</a></span>Cy_Ms_Ctl_SetActivePC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a> Cy_Ms_Ctl_SetActivePC </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a>&#160;</td>
          <td class="paramname"><em>busMaster</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set active protection context (PC)for the referenced bus master. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">busMaster</td><td>Bus master being initialized</td></tr>
    <tr><td class="paramname">pc</td><td>PC value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Initialization status </dd></dl>

</div>
</div>
<a id="gae7608123f85ff134b3160076f8b02b89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae7608123f85ff134b3160076f8b02b89">&#9670;&nbsp;</a></span>Cy_Ms_Ctl_GetActivePC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_Ms_Ctl_GetActivePC </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a>&#160;</td>
          <td class="paramname"><em>busMaster</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the active protection context (PC) for the referenced bus master. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">busMaster</td><td>Bus master for which the PC value is being read</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>PC value </dd></dl>

</div>
</div>
<a id="ga95e11dab5d1cca926b0d8a65fea72ce3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga95e11dab5d1cca926b0d8a65fea72ce3">&#9670;&nbsp;</a></span>Cy_Ms_Ctl_SetSavedPC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a> Cy_Ms_Ctl_SetSavedPC </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a>&#160;</td>
          <td class="paramname"><em>busMaster</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>savedPc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set saved protection context (PC) for the referenced bus master. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">busMaster</td><td>Bus master being initialized</td></tr>
    <tr><td class="paramname">savedPc</td><td>PC value</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Initialization status </dd></dl>

</div>
</div>
<a id="gaa9f62fc8c713a4495b4335ceab4cc5b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa9f62fc8c713a4495b4335ceab4cc5b9">&#9670;&nbsp;</a></span>Cy_Ms_Ctl_GetSavedPC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t Cy_Ms_Ctl_GetSavedPC </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__ms__ctl__enums.html#gad39353bf3922611b74d786d11d4b162c">en_ms_ctl_master_t</a>&#160;</td>
          <td class="paramname"><em>busMaster</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the saved protection context (PC) for the referenced bus master. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">busMaster</td><td>Bus master for which the saved PC value is being read</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>PC value </dd></dl>

</div>
</div>
<a id="gae5950bbc842cdd6e0d00434fd5177bfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae5950bbc842cdd6e0d00434fd5177bfd">&#9670;&nbsp;</a></span>Cy_Ms_Ctl_SetPcHandler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__ms__ctl__enums.html#ga5dee0e5d932c494077cd3b7edafd24d0">cy_en_ms_ctl_status_t</a> Cy_Ms_Ctl_SetPcHandler </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__syslib__macros.html#ga71c09beda7671d1f69c8f06a546e2ae6">cy_israddress</a>&#160;</td>
          <td class="paramname"><em>handler</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the handler address for the given PC. </p>
<p>This is used to detect entry to Cypress "trusted" code through an exception/interrupt.</p>
<dl class="section note"><dt>Note</dt><dd>The function can't update the handler address for the PC lower than the current application's PC. For example, if the application is running in PC2 it can't update handler address for PC0 or PC1.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pc</td><td>Protection context for which the handler is being set</td></tr>
    <tr><td class="paramname">handler</td><td>Address of the protection context handler</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Initialization status </dd></dl>

</div>
</div>
<a id="gacc9bc3592b28afb68e09b4703cf1f286"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacc9bc3592b28afb68e09b4703cf1f286">&#9670;&nbsp;</a></span>Cy_Ms_Ctl_GetPcHandler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__syslib__macros.html#ga71c09beda7671d1f69c8f06a546e2ae6">cy_israddress</a> Cy_Ms_Ctl_GetPcHandler </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the handler address for the given PC. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pc</td><td>Protection context for which the handler is being read</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Address of the protection context handler </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
